const mongoose = require('mongoose')
const {Schema,model} = mongoose 
const followsAndConcernSchema = new Schema({
  __v: {type: Number,select:false},
  uid:{type:String,required:true}, // 用户id
  following:{type:[{
    uid: {type: String, required: true},
    time: {type: String, required: true}
  }]}, // 粉丝列表  列表每个元素为 用户id 和 该用户关注时间
  concern:{type:[{
    uid: {type: String, required: true},
    time: {type: String, required: true}
  }]} // 关注列表  列表每个元素为 用户id 和 我关注这个用户的时间
},{timestamps:true})

module.exports = model("followsAndConcern",followsAndConcernSchema)